﻿<%@ Page Language="C#" MasterPageFile="~/UI/Main/Main.Master" AutoEventWireup="true" CodeBehind="add_new_todos.aspx.cs" Inherits="OrganizedIN.UI.ToDo.add_new_todos" %>
<%@ Register Assembly="AjaxControlToolkit, Version=3.5.40412.0, Culture=neutral, PublicKeyToken=28f01b0e84b6d53e"
    Namespace="AjaxControlToolkit" TagPrefix="cc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script type="text/JavaScript">
    function CheckValidation() {
        if (document.getElementById("<%=txtSummary.ClientID%>").value == "") {
            alert("Please Enter Summary.")
            document.getElementById("<%=txtSummary.ClientID%>").focus();
            return false;
        }
        
        if (document.getElementById("<%=txtDescription.ClientID%>").value == "") {
            alert("Please Enter Description.")
            document.getElementById("<%=txtDescription.ClientID%>").focus();
            return false;
        }
    }
</script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="middle_tab">
  	<div id="middle_tab_title" align="center">My ToDos</div>
	<div class="middle_tab_content">
<br />
		<h4>You can Add, Search, Prioritize by Drag-and-Drop, Redate (Add to a future Date), Delete, Archive, Mark as Completed, and Share with your Group by clicking on the below icons:</h4><br />

	</div>

	<div id="icon_link_wrapper" align="center">
		
		 <div id="icon_primary_todos" align="center"><a href="Add_New_ToDos.aspx" ><img src="../../add_02.jpg" alt="Add New ToDos" /></a></div>
				
		<div id="icon_secondary" align="center"><a href="search_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Search','','../../images/search_02.jpg',1)"><img src="../../images/search_01.jpg" alt="Search" name="Search" width="75" height="75" border="0" id="Search" /></a></div>
				
        <div id="icon_secondary" align="center"><a href="priortize_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Priortize','','../../images/priortize_02.jpg',1)"><img src="../../images/priortize_01.jpg" alt="Priortize" name="Priortize" width="75" height="75" border="0" id="priortize" /></a></div>
		
		<div id="icon_secondary" align="center"><a href="redate_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Re-Date','','../../images/redate_02.jpg',1)"><img src="../../images/redate_01.jpg" alt="Re-Date" name="Re-Date" width="75" height="75" border="0" id="Re-Date" /></a></div>
        
		 <div id="icon_secondary" align="center"><a href="archive_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Archive','','../../images/archive_02.jpg',1)"><img src="../../images/archive_01.jpg" alt="Archive" name="Archive" width="75" height="75" border="0" id="Archive" /></a></div>	
        
       <div id="icon_secondary" align="center"><a href="mark_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Mark as Completed','','../../images/mark_02.jpg',1)"><img src="../../images/mark_01.jpg" alt="Mark as Completed" name="Mark as Completed" width="75" height="75" border="0" id="Mark as Completed" /></a></div>
        
        <div id="icon_secondary" align="center"><a href="share_with_group_todos.aspx" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Share with group','','../../images/share_02.jpg',1)"><img src="../../images/share_01.jpg" alt="Share with group" name="Share with group" width="75" height="75" border="0" id="Share with group" /></a></div>
        </div><br /><br />
<div class="middle_tab_bottomtext">    
	<table width="100%" border="0" cellspacing="1" cellpadding="5" align="center">
      <tr bgcolor="#d8e1f3">
        <td align="left" width="100%">
            <table width="100%" cellpadding="0" cellspacing="0">
            <tr>
              <td  colspan="4" class="middle_text3" style="height:20px">
              <h4><strong><%=dtdate %> <a href="redate_todos.aspx">ReDate</a></strong></h4>              
              </td>
              
            </tr>
            <tr>
              <td class="middle_text3"> Summary </td>
              <td colspan="3">
              <asp:TextBox ID="txtSummary" runat="server"> </asp:TextBox></td>
              
            </tr>
            <tr>
              <td class="middle_text3">              
               Attach files
               </td>
              <td>
              <div>
        <asp:FileUpload ID="FileUpload1" runat="server" />
        <br />
    </div>
              </td>
              <td colspan="2"><asp:Button id="idorg" runat="server" 
                      CssClass="Button_Search_your_organizer" Text="Search your organizer" 
                      onclick="idorg_Click"/></td>
              
            </tr>
            <tr>
              <td class="middle_text3"> Descriptions: </td>
              <td  colspan="3"><asp:TextBox ID="txtDescription" runat ="server" TextMode="MultiLine"></asp:TextBox></td>
              
            </tr>
             <tr><td></td><td colspan ="2"><asp:Button ID="btnSave" CssClass="save_button" 
                     Text="Save" runat ="server" onclick="btnSave_Click" /></td></tr>
            </table>
        </td>
      </tr>
      
      <tr bgcolor="#d8e1f3">
        <td align="right" class="middle_text3"><h4><strong><asp:Label ID="lblErrMsg" runat="server" Text=""></asp:Label></strong></h4></td>
        </tr>   
        
         
    </table>
</div> 
	
    </div>
</asp:Content>
